package cn.learn.async.restful;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * 封装的异步返回
 * Async
 *
 * @author huangyezhan
 * @version 1.0
 * @date 2021年08月20日9:10
 */
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class RestResponse<T> {
    @Getter
    @Setter
    private int     code;
    @Getter
    @Setter
    private boolean success;
    @Getter
    @Setter
    private String  msg;
    @Getter
    @Setter
    private T       data;

    @Getter
    @Setter
    private Map expand;




}
